$(function() {

	function getQueryString(name) {
		var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
		var r = window.location.search.substr(1).match(reg);
		if (r != null) {
			return unescape(r[2])?decodeURIComponent(unescape(r[2])):null;
		}
		return null;
	}
	// 获取参数
	var paycode = GetQueryString("paycode");
	if(paycode == "zfb"){
		var out_trade_no = GetQueryString("out_trade_no");
		var subject = GetQueryString("subject");
		var total_fee = GetQueryString("total_fee");
	} else if(paycode == "wyzf") {
		var out_trade_no = GetQueryString("out_trade_no");
		var subject = GetQueryString("subject");
		var total_fee = GetQueryString("total_fee");
		var defaultbank = GetQueryString("defaultbank");
	}
});
